<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:dubbo="http://dubbo.apache.org/schema/dubbo"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd
       http://dubbo.apache.org/schema/dubbo
       http://dubbo.apache.org/schema/dubbo/dubbo.xsd">

    <dubbo:application name="${rootArtifactId}">
        <dubbo:parameter key="qos.port" value="${r'${QOS_PORT:22230}'}"/>
    </dubbo:application>

    <dubbo:protocol name="dubbo" port="${r'${DUBBO_PORT:20999}'}"
                    threadpool="fixed" threads="${r'${dubbo.thread.pool.size:200}'}" dispatcher="message"
    />

    <#if zookeeper?? && zookeeper.address??>
    <dubbo:registry protocol="zookeeper" address="${zookeeper.address}"/>
    <#else >
    <dubbo:registry protocol="zookeeper" address="${r'${zookeeper.address}'}"/>
    </#if>

    <!--公共配置-->
    <import resource="classpath*:dubbo/provider/dubbo-provider*.xml"/>

    <import resource="classpath*:dubbo/consumer/dubbo-consumer*.xml"/>

</beans>
